using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Widgetsphere.AutoAggregate.Website.Objects
{
	public class GeoCode
	{
		#region Class Members

		private decimal _latitude;
		private decimal _longitude;
		private string _text = "";
		private int _entryId = 0;
		private bool _isRegistered = false;
		private string _description = "";
		private string _tag = "";

		#endregion

		#region Constructors

		public GeoCode() { }

		public GeoCode(decimal latitude, decimal longitude)
			: this()
		{
			_latitude = latitude;
			_longitude = longitude;
		}

		#endregion

		#region Property Implementations

		public decimal Latitude
		{
			get { return _latitude; }
			set { _latitude = value; }
		}

		public decimal Longitude
		{
			get { return _longitude; }
			set { _longitude = value; }
		}

		public string Text
		{
			get { return _text; }
			set { _text = value; }
		}

		public int EntryId
		{
			get { return _entryId; }
			set { _entryId = value; }
		}

		public bool IsRegistered
		{
			get { return _isRegistered; }
			set { _isRegistered = value; }
		}

		public string Description
		{
			get { return _description; }
			set { _description = value; }
		}

		public string Tag
		{
			get { return _tag; }
			set { _tag = value; }
		}

		public bool IsValid
		{
			get { return (this.Latitude != 0) && (this.Longitude != 0); }
		}

		#endregion
	}
}
